#include <stdio.h>
#include <stdlib.h>
#include "DuList.c"

typedef LNode polynomial;
typedef char Elem;

int comperaPol(polynomial a,Elem* str,int len){

}

Status InitPolynomial(polynomial* a,Elem* str,int len){
	Elem *f=NULL,*l=NULL;

	if(str[0]!='-' && str[0]!='+')f=str;
	else f=&str[1];
	for(int i=0;i<len;i++){
		if(str[i]=='-' || str[i]=='+') {
			l=f;
			f=&str[i+1];
		}
	}
	return SUCCESS;
}

void printPolynamial(polynomial a){

}

void add(polynomial a,polynomial b,polynomial* c){

}

void sub(polynomial a,polynomial b,polynomial* c){

}

int main(){
	char a1[]="5+4*x*x*x+9*x+5*y*y";
	char b1[]="4*x*x*x-x+15*y+y*y";

}